Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZEVA-1744: Unit tests for 3 supplementary components #2375

Merged
merged 3 commits into from
Jan 2, 2025

Conversation

jdtoombs
Copy link
Collaborator

@jdtoombs jdtoombs commented Dec 10, 2024

This ticket was to improve coverage for our supplementary components.

The 3 components that now have tests allocated to them are:

  1. UploadEvidence
  2. SupplementaryInformation
  3. SupplementaryAlerts
  4. *started ZevSales

@jdtoombs jdtoombs self-assigned this Dec 10, 2024
@jdtoombs jdtoombs requested a review from emi-hi December 11, 2024 00:09
coverageReporters: ['json'],
testEnvironment: "jest-environment-jsdom",
collectCoverageFrom: ["src/**/*.{js,jsx}"],
coverageReporters: ["json", "html", "lcov"],
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Get visual representation of code coverage on local

},
coveragePathIgnorePatterns: ['node_modules/'],
testPathIgnorePatterns: ["/node_modules/", "/__tests__/test-data/"],
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can have test-data folders in any __tests__ dir now

@@ -64,7 +64,8 @@
"@storybook/addon-storyshots": "^6.1.21",
"@storybook/react": "^6.1.21",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.4.0",
"@testing-library/react": "^10.0.0",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Upgraded version to get some more utility; however, could not upgrade to latest due to being on React v16

@@ -64,7 +64,8 @@
"@storybook/addon-storyshots": "^6.1.21",
"@storybook/react": "^6.1.21",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.4.0",
"@testing-library/react": "^10.0.0",
"@testing-library/user-event": "^14.5.2",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good for testing uploads

@tim738745 tim738745 merged commit e906787 into bcgov:release-1.65.0 Jan 2, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants